@(user: Account)(adminUser : Boolean = false)(mwroot: MenuWrapper)
<div class="panel panel-default">
  <div class="panel-body" style="
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    padding-right: 5px;
    background-color: rgb(249,249,249);"
>
    <ul id="demo1" class="mynav">
   
   <li><a href="#">统计</a>
        <ul>
            <li><a href="#/statistic/main">系统</a></li>
            <li><a href="#/statistic/vehicle">车辆管理</a></li>
            <li><a href="#/statistic/schedule">调度</a></li>
        </ul>
    </li>
    
    @mwroot.children.map { nw =>
        <li><a href="@nw.menu.url">@nw.menu.name</a>
            <ul>
                @nw.children.map { nw =>
                    <li><a href="@nw.menu.url">@nw.menu.name</a></li>
                }
            </ul>
        </li>
    }
    
    @if(user!=null) {
    <li><a href="#">@user.name</a>
        <ul>
            <li><a href="@routes.Application.logout()">退出</a></li>
        </ul>
    </li>
    } else { 
    <li><a href="@routes.Application.login()">登录</a></li>
    }
    
    </ul>

    <p class="external">
        <a href="#" id="collapseAll" style="color: #419641;font-size:12px">收起</a> | <a href="#" style="color: #419641;font-size:12px" id="expandAll">展开 </a> | <a href="#" style="color: #419641;font-size:12px" id="hide_menu">隐藏 </a>
    </p>

  </div>
</div>